require("../../public/css/normalize.css")
require("../../public/css/common.css")
require("./crowd_funding.less")
require("../../public/download/font/iconfont.css")
require("../../swiper/swiper-bundle.min.css")
const Swiper = require("../../libs/swiper-bundle.min.js")
const mySwiper = new Swiper('.swiper', {
    loop: true, // 循环模式选项
    autoplay: true,//自动播放
    // 如果需要分页器
    pagination: {
        el: '.swiper-pagination',
    },
    // 如果需要前进后退按钮
    navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
    },

})
window.addEventListener("scroll",function(){
    let top = document.querySelector(".top")
  if (this.scrollY>300){
  top.style.display ="block"
  } else {
    top.style.display ="none"
  }
})
top.addEventListener("click",function(){
  window.scrollTo({
    top:0,
    behavior:"smooth"
  })
})
